/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package vn.webapp.service;

import java.util.List;
import vn.webapp.dto.DataPage;
import vn.webapp.model.Classes;
import vn.webapp.model.Rooms;

public interface RoomsService {

    public DataPage<Rooms> list();
    
    public Rooms viewDetail(String id);
    
    public Rooms checkExistsName(String name, int id);
    
    public int updateTheRoom(String name, int id, int capacity);
    
    public int removeRoom(int id);
    
    public int saveARoom(String name, int capacity);
    
    public DataPage<Rooms> filter(int page, int pageSize);
}
